package cn.zhaoyuening.crm.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.zhaoyuening.crm.dao.PostDao;
import cn.zhaoyuening.crm.domain.CrmDepartment;
import cn.zhaoyuening.crm.domain.CrmPost;

public class PostDaoImpl extends BaseDaoImpl<CrmPost> implements PostDao{

	@Override
	public List<CrmPost> findAll(CrmDepartment department) {
		List<CrmPost> list = getHibernateTemplate().find("from CrmPost where crmDepartment = ?", department);
		return list;
	}


	
}
